class Node(object):

    def __init__(self, task_id, children, parents, runtime, total_input_size, total_output_size, transmission):
        self.task_id = task_id  # 为每个任务分配唯一的ID
        self.runtime = runtime
        self.total_input_size = total_input_size
        self.total_output_size = total_output_size
        self.children = children
        self.parents = parents
        self.transmission = transmission

    def OutputNode(self):
        # 结点信息参考Resources/DAG.py的DAG类
        task_id = self.task_id
        children = self.children
        parents = self.parents
        runtime = self.runtime
        total_input_size = self.total_input_size
        total_output_size = self.total_output_size
        transmission = self.transmission
        # 信息输出
        print("===================================================")
        print("task_id      | ", end='')
        print(task_id)
        print("children     | ", end='')
        print(children)
        print("parents      | ", end='')
        print(parents)
        print("runtime      | ", end='')
        print(runtime)
        print("input size   | ", end='')
        print(total_input_size)
        print("output size  | ", end='')
        print(total_output_size)
        print("transmission | ", end='')
        print(transmission)
        return